<?php
/*
 * Created on 2009-7-19
 *
 * Author: guobin@yizin.net
 */
global $header;
global $footer;
global $menu;

global $serial;
global $id;
global $email;
global $nickname;
global $description;
global $error;

global $featureManager;
$header['title'] = '用户编辑 - 用户管理';
$header['head'] = '';
$featureManager->apply("com.yizin.platform.admin.header", $header);
$menu['current'] = 'user.user';
$featureManager->apply("com.yizin.platform.admin.menu", $menu);
$featureManager->apply("com.yizin.platform.admin.footer", $footer);

?>
<?= $header['html'] ?>

<div class="ysi-container-C"><div class="ysi-container-CI">
	
	<div>
		<a href="<?=REQUEST_BASE?>admin/user/user/">&lt;&lt;返回用户管理</a>
	</div>
	<form action="<?=REQUEST_BASE?>admin/user/user/<?=$serial?>/" method="post">
	<table border="1">
		
		<tr>
			<td>用户名</td>
			<td><input type="text" name="id" value="<?=$id?>" /></td>
			<td>字母数字组合，字母开头，4-20字符</td>
			<td><?=$error['id']?></td>
		</tr>
		<tr>
			<td>邮箱</td>
			<td><input type="text" name="email" value="<?=$email?>" /></td>
			<td></td>
			<td><?=$error['email']?></td>
		</tr>
		<tr>
			<td>昵称</td>
			<td><input type="text" name="nickname" value="<?=$nickname?>" /></td>
			<td>4-20字符</td>
			<td><?=$error['nickname']?></td>
		</tr>
		<tr>
			<td>个人介绍</td>
			<td><textarea name="description"><?=$description?></textarea></td>
			<td></td>
			<td><?=$error['description']?></td>
		</tr>
		<tr>
			<td>密码</td>
			<td><input type="password" name="password" /></td>
			<td>如不修改请留空，6-30字符</td>
			<td><?=$error['password']?></td>
		</tr>
		<tr>
			<td>密码确认</td>
			<td><input type="password" name="password1" /></td>
			<td></td>
			<td><?=$error['password1']?></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="提交" /> <input type="reset" value="重置" onclick="window.location.href='<?=REQUEST_BASE?>admin/user/user/<?=$serial?>/';" /></td>
			<td></td>
			<td></td>
		</tr>
	</table>
	</form>
</div></div>

<div class="ysi-container-L">
<?= $menu['html'] ?>
</div>

<?= $footer['html'] ?>
